package com.liuning.graduationdemo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author pumpkin
 * @since 2022-04-22
 */
@Getter
@Setter
@TableName("sys_doctor")
@ApiModel(value = "Doctor对象", description = "")
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("医生用户名")
      private String username;

      @ApiModelProperty("医生密码")
      private String password;

      @ApiModelProperty("医生姓名")
      private String nickname;

      @ApiModelProperty("医生履历")
      private String description;

      @ApiModelProperty("可预约数量")
      private Integer bookingNumber;

      @ApiModelProperty("医生性别，1是男，0是女")
      private Integer sex;

      @ApiModelProperty("邮箱")
      private String email;

      @ApiModelProperty("手机号")
      private String phone;

      @ApiModelProperty("地址")
      private String address;

      @ApiModelProperty("创建时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime createTime;

      @ApiModelProperty("头像")
      private String avatar;

      @ApiModelProperty("角色")
      private String role;

      @ApiModelProperty("逻辑删除，0没有删除，1被删除")
      @TableLogic
      @TableField("deleted")
      private Integer deleted;

      @ApiModelProperty("挂号费用")
      private BigDecimal bookingPrice;

      @ApiModelProperty("医生所属的科室")
      @TableField(exist = false)
      private Department department;


}
